package com.base.cn.platform.os.entity.statistics.goods;

import com.base.cn.platform.os.common.mybatis.BaseEntity;
import com.base.cn.platform.os.entity.order.shop.ShopData;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品PV统计实体
 *
 * @author s.li
 * @date 2019/04/28
 */
@Data
public class ZStatisticsGoodsPVCount extends BaseEntity {
    /**统计时间（天）*/
    private Date countTime;
    /**商品ID*/
    private BigDecimal goodsId;
    /**商品类型*/
    private String goodsType;
    /**PV量*/
    private Integer pvCount;
    /**PV明细(每个小的明细)*/
    private String pvInfo;
    //==============================
    /**商品对象*/
    private ShopData shop;

    public Integer getPvCount() {
        return pvCount == null ? 0 : pvCount;
    }
}
